#! /bin/sh -vx
# $Id$
# Copyright 2022 TANAKA Takuji  <ttk@t-lab.opal.ne.jp>
# You may freely use, modify and/or distribute this file.

BinDir=${BinDir:-.}
ExeExt=${ExeExt:-}
_euptex=$BinDir/euptex$ExeExt

LC_ALL=C; export LC_ALL;  LANGUAGE=C; export LANGUAGE

TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF
TEXINPUTS="$srcdir/uptexdir/tests;."; export TEXINPUTS

$_euptex -ini -etex -interaction batchmode -jobname upkcat-log kcat.tex || exit 1
grep '::' upkcat-log.log > upkcat-log_ed.log \
  && diff upkcat-log_ed.log $srcdir/uptexdir/tests/upkcat.txt || exit 2

exit 0
